package com.schoolgard.entitybean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * ParamCamera entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "PARAM_CAMERA")
public class ParamCamera implements java.io.Serializable {

	// Fields

	private String guid;
	private Terminal terminal;
	private String name;
	private Long protocolId;
	private String protocolAddress;
	private String protocolMode;
	private String motionAreaRange1;
	private String motionAreaSst1;
	private String presetDefaultAddress;
	private String protocolSpeed;
	private String userName;
	private String pwd;
	private String di1;
	private String di2;
	private String do1;
	private String do2;
	private String managerServerIp;

	@Id
	@Column(name = "GUID", unique = true, nullable = false, length = 64)
	public String getGuid() {
		return this.guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "GUID", unique = true, nullable = false, insertable = false, updatable = false)
	public Terminal getTerminal() {
		return this.terminal;
	}

	public void setTerminal(Terminal terminal) {
		this.terminal = terminal;
	}

	@Column(name = "NAME", length = 64)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "PROTOCOL_ID", precision = 10, scale = 0)
	public Long getProtocolId() {
		return this.protocolId;
	}

	public void setProtocolId(Long protocolId) {
		this.protocolId = protocolId;
	}

	@Column(name = "PROTOCOL_ADDRESS", length = 2)
	public String getProtocolAddress() {
		return this.protocolAddress;
	}

	public void setProtocolAddress(String protocolAddress) {
		this.protocolAddress = protocolAddress;
	}

	@Column(name = "PROTOCOL_MODE", length = 2)
	public String getProtocolMode() {
		return this.protocolMode;
	}

	public void setProtocolMode(String protocolMode) {
		this.protocolMode = protocolMode;
	}

	@Column(name = "MOTION_AREA_RANGE1", length = 20)
	public String getMotionAreaRange1() {
		return this.motionAreaRange1;
	}

	public void setMotionAreaRange1(String motionAreaRange1) {
		this.motionAreaRange1 = motionAreaRange1;
	}

	@Column(name = "MOTION_AREA_SST1", length = 2)
	public String getMotionAreaSst1() {
		return this.motionAreaSst1;
	}

	public void setMotionAreaSst1(String motionAreaSst1) {
		this.motionAreaSst1 = motionAreaSst1;
	}

	@Column(name = "PRESET_DEFAULT_ADDRESS", length = 2)
	public String getPresetDefaultAddress() {
		return this.presetDefaultAddress;
	}

	public void setPresetDefaultAddress(String presetDefaultAddress) {
		this.presetDefaultAddress = presetDefaultAddress;
	}

	@Column(name = "PROTOCOL_SPEED", length = 2)
	public String getProtocolSpeed() {
		return this.protocolSpeed;
	}

	public void setProtocolSpeed(String protocolSpeed) {
		this.protocolSpeed = protocolSpeed;
	}

	@Column(name = "USER_NAME", length = 40)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "PWD", length = 32)
	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	@Column(name = "DI1", length = 2)
	public String getDi1() {
		return this.di1;
	}

	public void setDi1(String di1) {
		this.di1 = di1;
	}

	@Column(name = "DI2", length = 2)
	public String getDi2() {
		return this.di2;
	}

	public void setDi2(String di2) {
		this.di2 = di2;
	}

	@Column(name = "DO1", length = 2)
	public String getDo1() {
		return this.do1;
	}

	public void setDo1(String do1) {
		this.do1 = do1;
	}

	@Column(name = "DO2", length = 2)
	public String getDo2() {
		return this.do2;
	}

	public void setDo2(String do2) {
		this.do2 = do2;
	}

	@Column(name = "MANAGER_SERVER_IP", length = 64)
	public String getManagerServerIp() {
		return this.managerServerIp;
	}

	public void setManagerServerIp(String managerServerIp) {
		this.managerServerIp = managerServerIp;
	}

}